<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('定时任务日志管理')"></head>
<body>
<!--搜索框-->
<form method="post" id="tabfrom">
    <div style="padding:2px" class="easyui-panel" title="数据查询">
        <table class="form-table">
            <td align="right" width="10%">任务模块：</td>
            <td align="left">
                <input id="selBeanName" style="width:150px"/>
            </td>
            <td align="right" width="10%">状态：</td>
            <td align="left">
                <input style="width:150px" id="selStatus"
                       class="easyui-combobox" data-options="prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
            data: [{ label: '1',  value: '成功' },{ label: '2', value: '失败'}]"/>
                <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearch();">查询</a>
            </td>
        </table>
    </div>
    <br>
</form>
<div id="toolbar">
    <shiro:hasPermission name="schedule:logger:del">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel"
           onclick="delScheduleLog()">删除</a>
    </shiro:hasPermission>
</div>

<div id="dg"></div>


<div id="dlg" class="easyui-dialog" style="width:650px;height:400px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form id="myform" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <tr>
                    <td align="right">日志流水：</td>
                    <td><input class="easyui-validatebox" name="id"/></td>
                    <td align="right">流水编号：</td>
                    <td><input class="easyui-validatebox" name="jobId"/></td>
                </tr>
                <tr>
                    <td align="right">任务模块：</td>
                    <td><input name="beanName" id="beanName" missingMessage="请维护角色类型"/></td>
                    <td align="right">任务方法：</td>
                    <td><input class="easyui-validatebox" name="methodName"/></td>
                </tr>

                <tr>
                    <td align="right">任务参数：</td>
                    <td><input class="easyui-validatebox" name="params"/></td>
                    <td align="right">任务状态：</td>
                    <td>
                        <input id="status" name="status" editable="false"
                               class="easyui-combobox" data-options="prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
                                    data: [{ label: '1',  value: '成功' },{ label: '2', value: '失败'}]"/>
                    </td>
                </tr>
                <tr>
                    <td align="right">执行时间(秒)：</td>
                    <td><input class="easyui-validatebox" name="times"/></td>
                </tr>
                <tr>
                    <td align="right">错误信息：</td>
                    <td colspan="3">
                        <input class="easyui-textbox" name="error"
                               data-options="multiline:true" style="height:80px;width:350px"/>
                    </td>
                </tr>
            </table>
        </div>

    </form>
</div>

<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/schedule/logger.js}"></script>
</body>
</html>
